package com.zj.fx.model.rpa;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class RpaOriginaldata implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "业务类型编码")
    private String typenum;

    @ApiModelProperty(value = "业务类型名称")
    private String typename;

    @ApiModelProperty(value = "三方系统数据id")
    private String thirdid;

    @ApiModelProperty(value = "指标年月")
    private String taskmonth;

    @ApiModelProperty(value = "分公司名称")
    private String subcompanyname;

    @ApiModelProperty(value = "外系统供电所名称")
    private String supplyname;

    @ApiModelProperty(value = "数据描述1")
    private String datamemo1;

    @ApiModelProperty(value = "数据1")
    private String value1;

    @ApiModelProperty(value = "数据描述2")
    private String datamemo2;

    @ApiModelProperty(value = "数据2")
    private String value2;

    @ApiModelProperty(value = "数据描述3")
    private String datamemo3;

    @ApiModelProperty(value = "数据3")
    private String value3;

    @ApiModelProperty(value = "数据描述4")
    private String datamemo4;

    @ApiModelProperty(value = "数据4")
    private String value4;

    @ApiModelProperty(value = "数据描述5")
    private String datamemo5;

    @ApiModelProperty(value = "数据5")
    private String value5;

    @ApiModelProperty(value = "数据描述6")
    private String datamemo6;

    @ApiModelProperty(value = "数据6")
    private String value6;

    @ApiModelProperty(value = "数据描述7")
    private String datamemo7;

    @ApiModelProperty(value = "数据7")
    private String value7;

    @ApiModelProperty(value = "数据描述8")
    private String datamemo8;

    @ApiModelProperty(value = "数据8")
    private String value8;

    @ApiModelProperty(value = "数据描述9")
    private String datamemo9;

    @ApiModelProperty(value = "数据9")
    private String value9;

    @ApiModelProperty(value = "数据描述10")
    private String datamemo10;

    @ApiModelProperty(value = "数据10")
    private String value10;

    @ApiModelProperty(value = "供电所是否具有对应关系（0否1是）")
    private String ismatch;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "推送进表时间")
    private Date createtime;

    @ApiModelProperty(value = "对应指标id")
    private String targetid;

    @ApiModelProperty(value = "转换时是否需混合运算（0否1是）")
    private String iscombine;

    @ApiModelProperty(value = "是否转换为有效数据（0否1是）")
    private String istransfer;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "转换时间")
    private Date transtime;


    public RpaOriginaldata(String id, String typenum, String typename, String thirdid, String taskmonth, String subcompanyname, String supplyname, String datamemo1, String value1, String datamemo2, String value2, String datamemo3, String value3, String datamemo4, String value4, String datamemo5, String value5, String datamemo6, String value6, String datamemo7, String value7, String datamemo8, String value8, String datamemo9, String value9, String datamemo10, String value10, String ismatch, Date createtime, String targetid, String iscombine, String istransfer, Date transtime) {

        this.id = id;

        this.typenum = typenum;

        this.typename = typename;

        this.thirdid = thirdid;

        this.taskmonth = taskmonth;

        this.subcompanyname = subcompanyname;

        this.supplyname = supplyname;

        this.datamemo1 = datamemo1;

        this.value1 = value1;

        this.datamemo2 = datamemo2;

        this.value2 = value2;

        this.datamemo3 = datamemo3;

        this.value3 = value3;

        this.datamemo4 = datamemo4;

        this.value4 = value4;

        this.datamemo5 = datamemo5;

        this.value5 = value5;

        this.datamemo6 = datamemo6;

        this.value6 = value6;

        this.datamemo7 = datamemo7;

        this.value7 = value7;

        this.datamemo8 = datamemo8;

        this.value8 = value8;

        this.datamemo9 = datamemo9;

        this.value9 = value9;

        this.datamemo10 = datamemo10;

        this.value10 = value10;

        this.ismatch = ismatch;

        this.createtime = createtime;

        this.targetid = targetid;

        this.iscombine = iscombine;

        this.istransfer = istransfer;

        this.transtime = transtime;

    }

    public RpaOriginaldata() {
        super();
    }

    public String dateToStringConvert(Date date) {
        if (date != null) {
            return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
        }
        return "";
    }


}